home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Oberon⁄F™ 1.1 / Obx / Docu / ParCmd (.txt) < prev    next >
Encoding:
Oberon Document  |  1996-01-05  |  2.5 KB  |  49 lines  |  [oODC/obnF]

  1. Documents.StdDocumentDesc
  2. Documents.DocumentDesc
  3. Containers.ViewDesc
  4. Views.ViewDesc
  5. Stores.StoreDesc
  6. Documents.ModelDesc
  7. Containers.ModelDesc
  8. Models.ModelDesc
  9. Stores.ElemDesc
  10. TextViews.StdViewDesc
  11. TextViews.ViewDesc
  12. TextModels.StdModelDesc
  13. TextModels.ModelDesc
  14. TextModels.AttributesDesc
  15. Helvetica
  16. Helvetica
  17. Helvetica
  18. Helvetica
  19. Controls.PushButtonDesc
  20. Controls.ControlDesc
  21. ObxParCmd.Do0
  22. Helvetica
  23. Helvetica
  24. ObxParCmd.Do1
  25. Helvetica
  26. StdLinks.LinkDesc
  27. StdCmds.OpenDoc('Obx/Mod/ParCmd')
  28. Helvetica
  29. Oberon by Example: ObxParCmd
  30. This example shows how a command button's context can be accessed. For example, a button in a text may invoke a command, which reads the text immediately following the command. This text can be used as an input parameter to the command.
  31. ObxParCmd implements two commands which scan the text behind a command button for a string. In the first command, the string is written to the log:
  32.  "this is a string following a command button"
  33. In this way, tool texts similar to the tools of the original ETH Oberon can be constructed.
  34. In the second command, the string is executed as a command sequence, thus operating in a similar way as a commander (-> DevCommanders):
  35.  "DevDebug.ShowLoadedModules"
  36. ObxParCmd
  37. sources
  38. TextControllers.StdCtrlDesc
  39. TextControllers.ControllerDesc
  40. Containers.ControllerDesc
  41. Controllers.ControllerDesc
  42. TextRulers.StdRulerDesc
  43. TextRulers.RulerDesc
  44. TextRulers.StdStyleDesc
  45. TextRulers.StyleDesc
  46. TextRulers.AttributesDesc
  47. Helvetica
  48. Documents.ControllerDesc
  49.